<?php

namespace App\Http\Controllers\Admin;

use App\Services\Admin\UserService;
use Illuminate\Http\Request;

class LoginController
{

    private $UserService;

    public function __construct(UserService $UserService)
    {
        $this->UserService = $UserService;
    }
    public function login(Request $request)
    {

        $arrDemo = $this->UserService->Login($request->all());
        return response()->success($arrDemo);

    }


    /**
     * 获取token
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function authenticate(Request $request)
    {

         dd( password_hash("yeyu5520", PASSWORD_DEFAULT) );

    }

}
